import Vue from 'vue'
import Router from 'vue-router'


import Home from '@/pages/Home'
import Sort from '@/pages/Sort'
import Cart from '@/pages/Cart'
import Mine from '@/pages/Mine'
import Active from '@/pages/Active'


import Login from '@/components/Login'
import Regist from '@/components/Regist'
import My from '@/components/My'
import Goods from '@/components/Goods'
import Goodslist from '@/components/Goodslist'
import Upload from '@/components/Upload'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Home
    },
    {
      path: '/sort',
      component: Sort
    },
    {
      path: '/cart',
      component: Cart
    },
    {
      path: '/mine',
      component: Mine
    },
    {
      path: '/active',
      component: Active
    },
    {
      path: '/login',
      component: Login
    },
    {
      path: '/regist',
      component: Regist
    },
    {
      path:'/my',
      component:My
    },
     {
      path:'/sort/kind/skind',
      component:Goods,
    },
    {
      path:'/sort/kind/skind/skinditem',
      component:Goodslist
    },
    {
      path:'/upload',
      component:Upload
    }
  ]
})
